package com.mall.user.services;

import com.mall.user.IUserQueryService;
import com.mall.user.dal.entitys.Member;
import com.mall.user.dal.persistence.MemberMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author : xfeng
 * @time : 2021/8/30 19:38
 * @program: myproject3
 * @description:
 */

@Service
public class IUserQueryServiceImpl implements IUserQueryService {

    @Autowired
    private MemberMapper memberMapper;


    @Override
    public String queryUser(Long id) {
        Member member = memberMapper.selectByPrimaryKey(id);
        return member.getUsername();
    }
}
